QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

TARGET = lua_test

win32:CONFIG(debug, debug|release) {
    DESTDIR = $$PWD/bin/Debug
} else {
    DESTDIR = $$PWD/bin/Release
}
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
#INCLUDEPATH += $$PWD/lua54
#DEPENDPATH += $$PWD/lua54

SOURCES += \
    cirt_lua.cpp \
    lua54/lapi.c \
    lua54/lauxlib.c \
    lua54/lbaselib.c \
    lua54/lcode.c \
    lua54/lcorolib.c \
    lua54/lctype.c \
    lua54/ldblib.c \
    lua54/ldebug.c \
    lua54/ldo.c \
    lua54/ldump.c \
    lua54/lfunc.c \
    lua54/lgc.c \
    lua54/linit.c \
    lua54/liolib.c \
    lua54/llex.c \
    lua54/lmathlib.c \
    lua54/lmem.c \
    lua54/loadlib.c \
    lua54/lobject.c \
    lua54/lopcodes.c \
    lua54/loslib.c \
    lua54/lparser.c \
    lua54/lstate.c \
    lua54/lstring.c \
    lua54/lstrlib.c \
    lua54/ltable.c \
    lua54/ltablib.c \
    lua54/ltm.c \
    lua54/lundump.c \
    lua54/lutf8lib.c \
    lua54/lvm.c \
    lua54/lzio.c \
    main.cpp \
    mainwindow.cpp

HEADERS += \
    cirt_lua.h \
    dmos.h \
    dmthread.h \
    dmutil.h \
    lua54/lapi.h \
    lua54/lauxlib.h \
    lua54/lcode.h \
    lua54/lctype.h \
    lua54/ldebug.h \
    lua54/ldo.h \
    lua54/lfunc.h \
    lua54/lgc.h \
    lua54/ljumptab.h \
    lua54/llex.h \
    lua54/llimits.h \
    lua54/lmem.h \
    lua54/lobject.h \
    lua54/lopcodes.h \
    lua54/lopnames.h \
    lua54/lparser.h \
    lua54/lprefix.h \
    lua54/lstate.h \
    lua54/lstring.h \
    lua54/ltable.h \
    lua54/ltm.h \
    lua54/lua.h \
    lua54/lua.hpp \
    lua54/luaconf.h \
    lua54/lualib.h \
    lua54/lundump.h \
    lua54/lvm.h \
    lua54/lzio.h \
    mainwindow.h

FORMS += \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/bin/Release/ -llua
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/bin/Debug/ -llua_d


